<html>
	<head>
		<title>form wid javascript</title>

		<script type="text/javascript">
			function display(form)
			{
			var username = form.username.value;
			//var password = form.password.value;
			if (username == "") {
				alert("Please provide username!!!");
                                return false;
			}
                        else 
                            return true;
			
			}
		</script>
	</head>
	
	<body>
	<!-- <a href="#" onclick="display();">sample</a>  -->
		 <form action="form_process.php" method="POST" onsubmit="return display(this);">
			username <input type="textbox" id ="username" name="username"/>
			<input id ="submit" type = "submit" value = "Check!!"/>
			
		</form>	
			
			
		
	</body>
	
</html>